import { reactive } from 'vue';

const state = reactive<{
  /**
   * 应急演练dto
   */
  emergencyDrillDto?: EmergencyDrillApi.Dto;
  /**
   * 应急演练小组成员
   */
  emergencyMemberDtos?: EmergencyDrillApi.MemberDto[];
  /**
   * 参考文件
   */
  emergencyPlanFileDtos?: EmergencyDrillApi.PlanFileDto[];
  /**
   * 处置步骤
   */
  emergencyDrillStepDtos?: EmergencyDrillApi.DrillStepDto[];
  /**
   * 是否是项目负责人
   */
  leader?: boolean;
  /**
   * 剩余时间
   */
  remainTime?: number;
}>({
  emergencyDrillDto: {},
  emergencyMemberDtos: [],
  emergencyPlanFileDtos: [],
  emergencyDrillStepDtos: [],
  leader: false,
  remainTime: 0,
});

export { state };
